#include "stdio.h"

#include "cmsis_os2.h"

#include "ohos_init.h"

#include "fire.h"

static void firetask(void *arg)
{
    (void)arg;
    while(1)
    {
        Fire();
        osDelay(100);
    }
}


static void FireEntry(void)
{
    osThreadAttr_t attr;
    attr.name="firetask";
    attr.stack_size=4096;
    attr.priority = osPriorityBelowNormal;

    if(osThreadNew(firetask,NULL,&attr) == NULL)
    {
        printf("creat firetask fail!\n");
    }
}

SYS_RUN(FireEntry);